{% load staticfiles %}
{%load i18n%}
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="{% static 'AdminLTE/dist/img/user2-160x160.jpg' %}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{{ request.user }}</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">MAIN NAVIGATION</li>
            <li class="treeview active">
                <a href="#">
                    <i class="fa fa-share"></i> <span>工单系统</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <li><a href="{% url 'workflow-index' %}"><i class="fa fa-circle-o"></i>新建工单</a></li>
                    <li><a href="{% url 'ticket-my' %}"><i class="fa fa-circle-o"></i>我创建的</a></li>
                    <li><a href="{% url 'ticket-my-todo' %}"><i class="fa fa-circle-o"></i>我的待办</a></li>
                    <li><a href="{% url 'ticket-my-related' %}"><i class="fa fa-circle-o"></i>我相关的</a></li>
                    <li><a href="{% url 'ticket-all' %}"><i class="fa fa-circle-o"></i>所有工单</a></li>
                </ul>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
